package meta

import (
	"gorm.io/gorm"
	"time"
)

type RecordModel struct {
	ID        uint           `json:"id" validate:"omitempty" gorm:"primarykey"`
	CreatedAt time.Time      `json:"created_at" validate:"omitempty" gorm:"autoCreateTime"`
	UpdatedAt time.Time      `json:"updated_at" validate:"omitempty" gorm:"autoUpdateTime"`
	DeletedAt gorm.DeletedAt `json:"deleted_at" validate:"omitempty" gorm:"index"`
}

type RecordModelWithoutID struct {
	CreatedAt time.Time      `json:"created_at" validate:"omitempty" gorm:"autoCreateTime"`
	UpdatedAt time.Time      `json:"updated_at" validate:"omitempty" gorm:"autoUpdateTime"`
	DeletedAt gorm.DeletedAt `json:"deleted_at" validate:"omitempty" gorm:"index"`
}
